<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"> 
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <title>REDJS-example</title>
    <link rel="icon" href="../LOGO.ico">
    <script type="text/javascript" src="../Rsd.js"></script>
    <!--<script type="text/javascript" src="../../RedjsLoggerAPI.js?t=2019022001" appId="b110c126-f428-489f-82fe-a8fcd12ba99a" token="WEG-Admin-Manager"></script>-->
    <link rel="stylesheet" type="text/css" href="../resources/css/Rsd.css"/>
    <link rel="stylesheet" type="text/css" href="../resources/css/Blue.css"/>
    <link rel="stylesheet" type="text/css" href="../resources/css/web.css"/>
   <!--<script type="text/javascript" src="https://res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/vconsole/3.0.0/vconsole.min.js"></script>-->
    <script>
        // init vConsole
        //var vConsole = new VConsole();
    </script>
    <script type="text/javascript" lang="zh-cn" language="javascript">
        Rsd.createApplication({ 
            appTitle: 'REDJS-example',
            appName: 'Rsd.Test',
            appFolder: 'src',
            //appHost:'http://10.16.20.5/Rsd.Shannon.Web/',
            appHost:'',
            loginUrl: 'login',
            indexUrl: 'index.html',
            isDebug:false,
            isDemo:window.location.protocol == 'file:',
            imgHost:'http://image.redmicro.cn/',
            requires: [],
            appId:'b110c126-f428-489f-82fe-a8fcd12ba99a',
            appDate:new Date().getTime(),
            beforeRun:function beforeRun() {

                Rsd.loadClass('Rsd.form.Label');
                Rsd.loadClass('Rsd.form.Link');
                //Rsd.loadPlugin('plugin/jquery/jquery.md5.js');
                //Rsd.alert("您当前使用的浏览器是：" + Rsd.detectNavigator());
                //Rsd.alert("您当前使用的操作系统是：" + Rsd.detectOS());
                Rsd.logger = new Rsd.data.Logger({commit:'commitLog',projectId:this.appId,parent:this});

                this.isReady = true;
            },
            /*
            * */
            launch: function launch() {
              
                //Rsd.httpRequest({url:'https://wex.dpxcn.com/web/index.php?c=site&a=entry&m=ewei_shopv2&do=web&isajax=1'},{},function (d) {
                //    console.log(d);
                //});
                var _form = Rsd.create('Rsd.zen.layout.Master', {
                    //header: null,
                    left:{
                        label:{
                            xtype:'link',
                            width:'100%',
                            height:30,
                            label:null,
                            ctrlStyle:{textAlign:'center'},
                            text:'点击返回',
                            handler:function(){history.back();history.pushState();}
                            //href:'../'
                        },
                        nodeClick:function(node)
                        {
                            if(!Rsd.isMobile())
                            {
                                return
                            }
                            //console.log('this is nodeClick');
                            if (node.page) 
                            {
                                var page = Rsd.create(node.page, {title:'',tabTitle:node.text});
                                if(page instanceof Rsd.container.Page)
                                {
                                    _form.showPage(page);
                                    return;
                                }
                               if(page instanceof Rsd.container.Dialog)
                               {
                                    page.showDialog();
                                    return;
                               }
                            }
                            else 
                            {
                                _form.showPage(Rsd.create('Rsd.example.' + node.text + 'Page', {title:'',tabTitle:node.text}));
                            }
                        },
                        nodeDblClick:function(node) {

                            //console.log('this is nodeDblClick');
                            if (node.page)
                            {
                                var page = Rsd.create(node.page, {title:'',tabTitle:node.text});
                                if(page instanceof Rsd.container.Page)
                                {
                                    _form.showPage(page);
                                    return;
                                }
                               if(page instanceof Rsd.container.Dialog)
                               {
                                    page.showDialog();
                                    return;
                               }
                                 
                            }
                            else
                            {
                                _form.showPage(Rsd.create('Rsd.example.' + node.text + 'Page', {title:'',tabTitle:node.text}));
                            }

                        },
                        nodes:[
                            {text:'Welcome',width:100,page:'Rsd.zen.page.WelcomePage'},
                            {text:'Redjs'},
                            {text:'Input'},
                            {text:'Grid'},
                            {text:'List'},
                            {text:'NotFound',page:'Rsd.zen.page.NotFoundPage'},
                            //{text:'WapEidtor',page:'Rsd.developer.WapPageEditor'},
                            {text:'Image'},
                            {text:'Menu'},
                            {text:'Icon',page:'Rsd.developer.SvgIconListPage'}
                            ]
                        },
                     footer:{
                         height:35,
                         items:[
                            {
                                xtype:'label',
                                width:'100%',
                                style:{textAlign:'center'},
                                text:'版权所有 ©️ 2012-2025 redjs'
                            }
                         ]
                     },   
                    }
                    );
                
                Rsd.app.MainForm =_form;
              
                _form.show(1000);
                _form.showPage(Rsd.create('Rsd.zen.page.WelcomePage',{title:'',tabTitle:'Welcome',backgroundImage:'../resources/images/LOGO.PNG'}));
            },
            /*

             * */
            showPage: function showPage(page,speed) {
                page.selected = true;
                Rsd.app.MainForm.showPage(page,speed);
            }


        });

        
    </script>
</head>
<body>
     
</body>
</html>